<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>美食天下</title>
    <!-- 调用css全局样式开始 -->
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <!-- 顶部导航菜单开始 -->
    <div class="header">
        <div class="inner">
            <div class="logo">
                <a href="#"><img src="images/logo.png" /></a>
            </div>
            <div class="nav">
                <ul>
                    <li>
                        <a href="index.html">首页</a>
                    </li>
                    <li>
                        <a href="cp.html">菜谱</a>
                        <ul>
                            <li><a href="cp.html">名菜</a></li>
                            <li><a href="xx.html">内页</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="sc.html">食材</a>
                    </li>
                    <li>
                        <a href="zx.html">珍选</a>
                    </li>
                    <li>
                        <a href="jj.html">舌尖上的中国</a>
                        <ul>
                            <li><a href="jj.html">栏目简介</a></li>
                            <li><a href="zh.html">中华名吃</a></li>
                            <li><a href="df.html">地方美食</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="jk.html">健康饮食</a>
                    </li>
                    <li>
                        <a href="zc.html">注册登录</a>
                        <ul>
                            <li><a href="zc.html">注册</a></li>
                            <li><a href="dl.html">登录</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="ly.html">留言中心</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 顶部导航菜单结束 -->
    <div class="main-z clearfix">
        <div class="articel">
            <!-- 图片滚动开始 -->
            <div id="showBox">
                <div id="inner">
                    <div id="box1">
                        <a href="xx.html"><img src="images/bx1.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx2.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx3.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx1.jpg" border="0" /></a>
                    </div>
                    <div id="box2">
                        <a href="xx.html"><img src="images/bx2.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx3.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx1.jpg" border="0" /></a>
                        <a href="xx.html"><img src="images/bx2.jpg" border="0" /></a>
                    </div>
                </div>
            </div>
            <!-- 图片滚动结束 -->
            <!-- 图片滚动js代码开始 -->
            <script>
            //获取所需元素
            var showBox = document.getElementById("showBox"); //最外边大盒子
            var box1 = document.getElementById("box1"); //内盒子1
            var box2 = document.getElementById("box2"); //内盒子2
            //设置移动的频率
            var speed = 10;
            //设置移动函数Marquee
            function Marquee() {
                // 判断隐藏在滚动条左侧的页面的宽度大于内盒子1的宽度的情况
                if (showBox.scrollLeft >= box1.offsetWidth) {
                    // 如果if添加成立隐藏在滚动条左侧的页面的宽度减去内盒子2的宽度
                    showBox.scrollLeft = showBox.scrollLeft - box2.offsetWidth;
                } else {
                    // 如果不成立 隐藏在滚动条左侧的页面的宽度递加
                    showBox.scrollLeft++;
                }
            }
            // 调用定时器
            var MyMar = setInterval(Marquee, speed);
            // 注册鼠标进入事件 鼠标进入清理定时器
            showBox.onmouseover = function() { clearInterval(MyMar) };
            // 注册鼠标离开事件 鼠标离开重新开始滚动
            showBox.onmouseout = function() { MyMar = setInterval(Marquee, speed) };
            </script>
            <!-- 图片滚动js代码结束 -->
        </div>
        <div class="aside">
            <!-- banner右边部分开始 -->
            <div class="ses">
                <div class="ses-bd">
                    <ul>
                        <li>
                            <a href="xx.html">
                            <img src="images/zz1.jpg">
                            <h3>南瓜鸡蛋螺丝粉</h3>
                            </a>
                        </li>
                        <li>
                            <a href="xx.html">
                            <img src="images/zz2.jpg">
                            <h3>菲力牛排</h3>
                            </a>
                        </li>
                        <li>
                            <a href="xx.html">
                            <img src="images/zz3.jpg">
                            <h3>酸菜炒鸡肚</h3>
                            </a>
                        </li>
                        <li>
                            <a href="xx.html">
                            <img src="images/zz4.jpg">
                            <h3>肥牛饭</h3>
                            </a>
                        </li>
                        <li>
                            <a href="xx.html">
                            <img src="images/zz5.jpg">
                            <h3>西红柿炒菜花</h3>
                            </a>
                        </li>
                        <li class="yingxiao">
                            <a href="xx.html">
                            <img src="images/zz6.jpg">
                            <h3>西兰花虾仁</h3>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 菜谱开始 -->
    <div class="main">
        <ul>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p1.jpg"></a></div>
                <div class="m-wen2">土豆茄子焖饭
                    <p>推荐指数：☆☆☆ | ¥49</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p2.jpg"></a></div>
                <div class="m-wen2">黑椒鸡翅
                    <p>推荐指数：☆☆☆☆ | ¥99</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p3.jpg"></a></div>
                <div class="m-wen2">蛋虾汤河粉
                    <p>推荐指数：☆☆☆☆☆ | ¥78</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p4.jpg"></a></div>
                <div class="m-wen2">脆皮香蕉
                    <p>推荐指数：☆☆☆☆ | ¥20</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p5.jpg"></a></div>
                <div class="m-wen2">酥肉香菇豆皮汤
                    <p>推荐指数：☆☆☆☆☆ | ¥134</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p6.jpg"></a></div>
                <div class="m-wen2">姬松茸烧茭白
                    <p>推荐指数：☆☆ | ¥23</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p7.jpg"></a></div>
                <div class="m-wen2">酱烤鸡腿
                    <p>推荐指数：☆☆☆☆☆ | ¥109</p>
                </div>
            </li>
            <li>
                <div class="m-tu2"><a href="xx.html"><img src="images/p8.jpg"></a></div>
                <div class="m-wen2">蒜泥红苋菜
                    <p>推荐指数：☆☆☆☆ | ¥76</p>
                </div>
            </li>
        </ul>
    </div>
    <!-- 底部版权部分开始 -->
    <div class="footer">
        <p>copyright ©2020 美食天下 版权所有 All Rights Reserved.</p>
        <p>联系电话:13900000000 邮箱地址:123456789@qq.com</p>
    </div>
</body>

</html>